import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///返回屏幕高度
double getScreenHeight(BuildContext _context) {
  return MediaQuery.of(_context).size.height;
}

///返回状态栏高度
double getTopBarHeight(BuildContext _context) {
  return MediaQuery.of(_context).padding.top;
}

///返回appbar高度，也就是导航栏高度
double getAppBarHeight(BuildContext _context) {
  return kToolbarHeight;
}
///返回屏幕宽度
double getScreenWidth(BuildContext _context) {
  return MediaQuery.of(_context).size.width;
}

///返回底部tab高度
double getBottomNavigationBarHeight(BuildContext _context) {
  return kBottomNavigationBarHeight;
}


